package com.woniuxy.mapper;

import com.woniuxy.entity.dto.DepartmentDTO;
import com.woniuxy.entity.Department;
import com.woniuxy.entity.SubDepartment;

import java.util.List;

public interface DeptMapper {
    List<Department> queryAllDept(DepartmentDTO departmentDTO);//查询全部部门
    List<SubDepartment> queryAllSubDept(Integer id);//根据部门ID查询子部门
    void addDept(Department department);//添加部门
    void saveUpdateDept(Department department);//修改部门信息
    void updateStatus(Department department);//修改部门启用状态
    void addSubDept(SubDepartment subDepartment);//添加子部门
    void updateSubDeptSave(SubDepartment subDepartment);//修改子部门信息
    void updateSubStatus(SubDepartment subDepartment);//修改子部门启用状态
    void updateSubStatusByDeptId(Integer id,String status);
}
